﻿<ribbon:RibbonWindow x:Class="Acceron.University.WinClient.Views.ShellWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
        Title="University Managment System"
		x:Name="RibbonWindow"
		Width="800" Height="600">
<!-- Window Resources -->
    <ribbon:RibbonWindow.Resources>
        <LinearGradientBrush x:Key="WindowBackgroundBrush">
            <GradientStop Color="#FFE7E9EB" Offset="0" />
            <GradientStop Color="#FFC6CACF" Offset="1" />
        </LinearGradientBrush>
        
        
    </ribbon:RibbonWindow.Resources>
    
    <ribbon:RibbonWindow.Background>
        <StaticResource ResourceKey="WindowBackgroundBrush" />
    </ribbon:RibbonWindow.Background>
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ribbon:Ribbon x:Name="ApplicationRibbon" 
                       Background="Transparent"
                       prism:RegionManager.RegionName="RibbonRegion">
            
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu SmallImageSource="Images\SmallIcon.png">
                    <ribbon:RibbonApplicationMenuItem Header="Exit"
                                                      x:Name="ExitItem"
                                                      Command="Close"
                                                      ImageSource="Images\gnome_session_logout.png"/>
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            
            <ribbon:RibbonTab x:Name="HomeTab" 
                              Header="Home">
                <!-- <ribbon:RibbonGroup x:Name="Group1" 
                                    Header="Group1">
                    <ribbon:RibbonButton x:Name="Button1"
                                         LargeImageSource="Images\LargeIcon.png"
                                         Label="Button1" />

                    <ribbon:RibbonButton x:Name="Button2"
                                         SmallImageSource="Images\SmallIcon.png"
                                         Label="Button2" />
                    <ribbon:RibbonButton x:Name="Button3"
                                         SmallImageSource="Images\SmallIcon.png"
                                         Label="Button3" />
                    <ribbon:RibbonButton x:Name="Button4"
                                         SmallImageSource="Images\SmallIcon.png"
                                         Label="Button4" />
                    
                </ribbon:RibbonGroup>
                -->
            </ribbon:RibbonTab>
        </ribbon:Ribbon> 
        
        <Grid x:Name="ClientArea" Grid.Row="1">

            <!-- Grid Layout -->
            <Grid.ColumnDefinitions>
                <ColumnDefinition x:Name="NavigationColumn" Width="0.200*" />
                <ColumnDefinition x:Name="WorkspaceColumn" Width="0.600*" />
            </Grid.ColumnDefinitions>
            
            <GridSplitter HorizontalAlignment="Left" Width="5" Grid.Column="1"/>

            <Grid x:Name="NavigationPane">
                <TreeView Background="#88FFFFFF">
                    <TreeViewItem x:Name="MyWorkItem" 
                                  Header="My Work" 
                                  prism:RegionManager.RegionName="MyWorkRegion" 
                                  HorizontalAlignment="Stretch" 
                                  VerticalAlignment="Top"
                                  >
                    </TreeViewItem>
                    <TreeViewItem x:Name="ResourcesItem" 
                                  Header="Resources" 
                                  prism:RegionManager.RegionName="ResourcesRegion" 
                                  HorizontalAlignment="Stretch" 
                                  VerticalAlignment="Top" />
                    
                </TreeView>
            </Grid>
            
            
            <!-- Workspace Region-->
            <ContentControl Margin="10,5,5,5" x:Name="WorkspaceRegion" Grid.Column="1" prism:RegionManager.RegionName="WorkspaceRegion" />
            
        </Grid>
        
    </Grid>
</ribbon:RibbonWindow>
